package com.woniuxy.microretailserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microretailserver.bean.*;

import java.util.HashMap;
import java.util.List;

/**
 * @author chenhu
 * 退货订单业务层接口
 */
public interface IGoodsReturnInfoService {
    /**
     * 新增退货订单信息
     * @param orderGoodsBean
     * @param returnPayInfoBean
     * @param goodsReturnInfoBean
     * @return
     */
    int saveGoodsReturnInfo(GoodsReturnInfoBean goodsReturnInfoBean, List<OrderGoodsBean> orderGoodsBean, ReturnPayInfoBean returnPayInfoBean);

    /**
     * 分页查询商品退货订单信息
     * @param request
     * @param goodsReturnInfoBean
     * @return
     */
    PageInfo<GoodsReturnInfoBean> findAllGoodsReturn(PageRequest request, GoodsReturnInfoBean goodsReturnInfoBean);

    /**
     * 根据订单号查询详细信息
     * @param orderNo
     * @return
     */
    HashMap<String,Object> findAllReturn(String orderNo);

    /**
     * 导出退货订单数据
     * @return
     */
    List<GoodsReturnInfoBean> findAll();
}
